package com.lesliefang.abcdisasm

import com.intellij.DynamicBundle
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.PropertyKey

/**
 * 国际化资源束管理类
 */
class AbcDisasmBundle : DynamicBundle(BUNDLE) {

    companion object {
        private const val BUNDLE = "messages.AbcDisasmBundle"
        private val INSTANCE = AbcDisasmBundle()

        @Nls
        fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String {
            return INSTANCE.getMessage(key, *params)
        }
    }
}